#!/usr/bin/env bash
# 实例文件：use_up_option
#
# 使用并丢弃一个选项
#
# 解析可选参数
VERBOSE=0
if [[ $1 = -v ]]
then
    VERBOSE=1
    shift
fi
#
# 实际工作如下
#
for FN in "$@"
do
    if (( VERBOSE == 1 ))
    then
        echo changing $FN
    fi
    chmod 0750 "$FN"
done

